package com.lhm;

public class test {
    public static void main(String[] args) {

        int a[]={11,55,12,33,14};
        for (int i = 0; i <a.length-1 ; i++) {
            for (int j = 0; j <a.length-1-i; j++) {
                if (a[j]>a[j+1]){
                    int e=a[j];
                    a[j]=a[j+1];
                    a[j+1]=e;
                }
            }
        }
        for (int i = 0; i <a.length ; i++) {
            System.out.print(a[i] +" ");
        }
    }
}
